package com.bmps.springcloud.insuredmicroservice.model.accept.response;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import java.io.Serializable;

/**
 *  @author lyw
 *  @date 2019/07/24
 */

public class ResponseProductInfoModel implements Serializable {

    private String payPrem;

    public String getPayPrem() {
        return payPrem;
    }

    public void setPayPrem(String payPrem) {
        this.payPrem = payPrem;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o){
            return true;
        }

        if (o == null || getClass() != o.getClass()){
            return false;
        }

        ResponseProductInfoModel that = (ResponseProductInfoModel) o;

        return new EqualsBuilder()
                .append(payPrem, that.payPrem)
                .isEquals();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(17, 37)
                .append(payPrem)
                .toHashCode();
    }

    @Override
    public String toString() {
        return "ResponseProductInfoModel{" +
                "payPrem='" + payPrem + '\'' +
                '}';
    }
}
